package day5;

public class FactoryProducer {
	
	public static AbstractFactory getFactory(String factoryName) {
		if(factoryName.equalsIgnoreCase("shape")) {
			return new ShapeFactory();
		} else if (factoryName.equalsIgnoreCase("color")) {
			return new ColorFactory();
		} else {
			
		}
		return null;
	}
}
